#!/bin/bash
# Copyrignt (c) maozhihua.com. All Rights Reserved.
# Author: Mao Zhihua<maozhihua@skyworth.com>
# Created Time: 2016-09-10 16:02:07
# Last Modified: 2016-11-02 19:46:12
# File Name: update_module_order.sh
# Description: 

source ./gl.sh

body='{"server_code":"ZJJDQX","layout":{"size":"2:1","isautoroll":1,"direct":"right","interval":1,"loop":0,"show_contain_name":2},"item_order":[1,2,3,4]}'
body1='{"server_code":"ZJJDAN","layout":{"size":"2:1","isautoroll":1,"direct":"right","interval":1,"loop":0,"show_contain_name":2},"item_order":[1,2,3,4]}'


#curl -v -k "https://${host}/banner/admin/controller/add?appkey=${appkey}" -d "${body}"

curl -v -k -H "Host:adop.app.doubimeizhi.com" "https://10.169.94.211:443/banner/admin/controller/add?appkey=${appkey}" -d "${body}"
curl -v -k -H "Host:adop.app.doubimeizhi.com" "https://10.169.94.211:443/banner/admin/controller/add?appkey=${appkey}" -d "${body1}"

